Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将CSS添加到现有网站_Html_Css - Fatal编程技术网

Html 将CSS添加到现有网站

Html 将CSS添加到现有网站,html,css,Html,Css,我想为这个网站制作一个更方便移动的版本: 所以我写了这个小小的CSS: #slider-banner{ display: none; } #secondary-right{ display: none; } h1.site-info { display: none; } 但是我怎样才能在这个网站上实现它呢 我无法访问服务器 我对这一切都很陌生 根据您的澄清。。这就是你能做到的 <html> <?php $homepage = file_get_c

我想为这个网站制作一个更方便移动的版本:
所以我写了这个小小的CSS:

#slider-banner{
    display: none;
}

#secondary-right{
    display: none;
}

h1.site-info {
    display: none;
}
但是我怎样才能在这个网站上实现它呢

  • 我无法访问服务器

  • 我对这一切都很陌生


根据您的澄清。。这就是你能做到的

<html>
<?php
$homepage = file_get_contents('https://auspuff-schuelerzeitung.de/');
echo $homepage; //you can strip the closing <html> if it bothers..
?>
<link rel='stylesheet' href='my_changes.css' type='text/css'/>


</html>


无法访问服务器???如果无法访问服务器,则无法执行此操作。您需要访问才能修改那里的代码。您可以将其添加到现有的样式表中,也可以创建一个新的样式表并在“禁止访问服务器”中添加引用?所以有一天你会问如何在google或stackoverflow上进行css更改?我无法编辑html,因为我无法访问服务器。显然,如果不访问服务器,你无法修改Internet上的随机网站。您必须要求网站所有者实现这一点,或者使用浏览器插件或类似工具在本地添加CSS。这两种解决方案都与编程无关,所以这不是一个很好的问题。谢谢,我会试试的,谢谢!你的应用程序是什么?网络应用还是手机?这段代码在所有浏览器上都能很好地工作,它是用DroidScript编写的,DroidScript是一个使用Javascript的简单程序,没有自定义css。它在你的应用程序上工作吗?我的意思是你能在你的应用程序上获取该站点吗?