这里的第一个网站(只是一个抬头)!我的问题是我试图将我的内容(下面的飞鱼绘画和维护服务链接)全部放在h1类别而不移动图像!当我添加Services href链接时,我真的希望两个图像(左侧和右侧)分别保持在左上角和右上角.有任何想法吗?这是我的代码:
.round1 {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
width: 70px;
height: 70px;
}
.round2 {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
width: 70px;
height: 70px;
}
.linkto {
color: white;
font-size: 60%;
font-family: Arial;
}
.linkto:hover {
color: blue;
}
body {
padding: 20px 20px 20px 20px;
}
h1 {
color: white;
border: 6px solid black;
border-radius: 25px;
text-align: center;
font-family: Forte;
font-weight: bold;
background-color: black;
font-size: 180%;
padding-bottom: -50px;
}Run Code Online (Sandbox Code Playgroud)
<h1>
Flying Fish Painting & Maintenance</br>
<img class="round1" src="https://flyingfishpainting.files.wordpress.com/2013/04/flying_fish_logo_hressmall.png?w=300&h=291" align=left>
<img …Run Code Online (Sandbox Code Playgroud)我在使用WooCommerce编辑帐户页面时遇到问题.提交表单时,将显示错误消息"显示名称是必填字段".我试过添加一个字段
input type="text" 和
<select name="display_name" id="display_name" >
<option selected="selected"><?php echo esc_attr( $user->display_name ); ?></option>
</select>
Run Code Online (Sandbox Code Playgroud)
但没有运气试图添加该字段.我也试图让这个领域不是必需的,但我不确定如何使用最新版本的WooCommerce.
我有一个如下所示的数组:
$myarray = array(
array('itemid' => '1','height'=>'5','length' => '5'),//area=25(height*length)
array('itemid' => '2','height'=>'2','length' => '5'),//area=10(height*length)
array('itemid' => '3','height'=>'5','length' => '3'),//area=15(height*length)
);
Run Code Online (Sandbox Code Playgroud)
我想按升序对它进行排序,方法是通过乘以每个数组项的高度和长度(字符串值)来计算面积,如下所示
$sortedarray = array(
array('itemid' => '2','height'=>'2','length' => '5'),//area=10(height*length)
array('itemid' => '3','height'=>'5','length' => '3'),//area=15(height*length)
array('itemid' => '1','height'=>'5','length' => '5'),//area=25(height*length)
);
Run Code Online (Sandbox Code Playgroud)
我知道php有array_multisort功能但我需要通过计算区域来排序.