半点优化网 http://www.bdxc.net/
当前位置首页 > 网站建设> 正文

网页制作图片的大小怎么设置?

2022-10-18 02:19:52 暂无评论 275 网站建设 长宽   设置   网页

1、首先打开html编辑器, 设置一个div并对div设置固定宽度和高度,还要在div里面插入一张图片。

2、接着在上方设置div和img的样式,将图片的宽度设置为何父级一样的宽度,代码就是“width:100%;”这里的100%会自动跟随父级的宽度选择,然后将父级的高度去掉,这样子集的高度就自动化了。

3、最后将图片设置为display:block;转为块状就可以了。

4、最后打开浏览器就可以看到固定大小的图片了。

有哪位大师给我讲一下网页设计时,页面应该设置为多大?

网站页面设计基本尺寸规范页面标准按800*600分辨率制作,实际尺寸为778*434px页面长度原则上不超过3屏,宽度不超过1屏
每个标准页面为A4幅面大小,即8.5X11英寸
全尺寸banner为468*60px,半尺寸banner为234*60px,小banner为88*31px另外120*90,120*60也是小图标的标准尺寸
每个非首页静态页面含图片字节不超过60K,全尺寸banner不超过14K
以上数据根据实际情况,合理运用,所谓“规矩是死的,人是活的”:)大家不一定都要死钻牛角尖哟!
:)

制作网页长宽设置为多大?

满屏的话,你用百分比来实现好了(100%) 在嵌套设置的时候计算好百分比就可以了,

猜你喜欢

随机文章


    Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/bdxc.net/e/class/connect.php) is not within the allowed path(s): (/www/wwwroot/www.bdxc.net/:/tmp/) in /www/wwwroot/www.bdxc.net/1.php on line 4

    Warning: require(/www/wwwroot/bdxc.net/e/class/connect.php): failed to open stream: Operation not permitted in /www/wwwroot/www.bdxc.net/1.php on line 4

    Fatal error: require(): Failed opening required '/www/wwwroot/bdxc.net/e/class/connect.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/www.bdxc.net/1.php on line 4